//
// Created by Tony on 2024/5/29.
//

#ifndef RT_CODE_FIELD_H
#define RT_CODE_FIELD_H

#include "Member.h"
#include <cstdint>

namespace RtCode {

class Field final : public Member {
    uint16_t mSlotId{};
    int32_t mType{};

public:
    explicit Field(const string& name) : Member(name) {}

    void setType(int32_t classId) { mType = classId; }
    int32_t getType() const { return mType; }

    void setSlotId(uint16_t slotId) { mSlotId = slotId; }
    uint16_t getSlotId() const { return mSlotId; }
};

} // namespace RtCode

#endif // RT_CODE_FIELD_H
